Skip to main content

Connecting with Hubspot

The goal of this document

Here, we are going to connect the vendor called HubSpot to the Airbyte then it will redirect the data using the destination of MySQL, User can choose the format of the destination as required, For example from MySQL/ PostgreSQL, etc.

Useful Resources of Airbyte

Requirements to get the ‘HubSpot’ source

  • User should have an account on HubSpot, if not then signup from the link: HubSpot signup.
  • User should have the API key of hubspot.com

Steps to Fetch the Personal API Token from freshworks.com

  1. Go to HubSpot signup and make a user account: https://app.hubspot.com/signup-hubspot/crm?loginRedirectUrl=undefined&step=landing_page

  2. Login with your credentials, as shown in figure the below:

Docusaurus Slash Introduction

  1. To reach to the API key page, Go to the settings page from top-right corner of the screen after login. as shown in figure below:

Docusaurus Slash Introduction

  1. After reaching the settings page, find the Integration option from the left menu bar, and select the API key option, as shown in figure below:

Docusaurus Slash Introduction

  1. Here, to see the API key click on the show button to see and copy the HubSpot API key.

Docusaurus Slash Introduction

  1. As you click on the show button, it automatically enables the Copy button under the API key, as shown in figure below:

Docusaurus Slash Introduction

Steps to Connect HubSpot.com with AIV

  1. Go to the Airbyte using the below link: https://airbyte.com/

  2. The Airbyte landing screen looks like below:

Docusaurus Slash Introduction

  1. Here We have 3 options on the left, which contain Connections, Sources, and Destination. As per continuing the steps click on the Sources option.

Docusaurus Slash Introduction

  1. To add the HubSpot.com source, click on the New Source button from the Top-right corner.

Docusaurus Slash Introduction

  1. To add Any of the sources here, the user needs to add the properties which are needed from the Airbyte, every source has its own individual properties.

Docusaurus Slash Introduction

note

Note: Here every source demands a different type of property, where Client DI, Client Secret, and Refresh Tokens are common in most sources. on that we can say, all the sources are different from each other.

  1. Set up source Form overview:
  1. Name: Users can add the name of the source as per their requirements.
  2. Source Type: The user has to select the source type from the provided list.
  3. Start Date: You can add current date here.
  4. API key: Add HubSpot API Key.

You can match with the given figure below:

Docusaurus Slash Introduction

  1. Now, click on Set up Connection, it will test the connection here, then it will redirect to add destination of the source, as per figure below:

Docusaurus Slash Introduction

Connection Tests Passed Alert

Docusaurus Slash Introduction

  1. After testing the connection successfully add the destination here.

Docusaurus Slash Introduction

Here, on the source adding screen,

  • The top-menu bar shows two buttons where 1. for Overview of the source and 2. for the settings of the source.
  • Overview: The overview screen shows the details related to the source; it may be empty as per the above screen.
  • Settings: From settings, the user can edit the form details of the added source.
  • Add destination button leads us to the destination page from this source page.
  1. Click on the Destination from the Top-right corner, as shown in the figure below:
note

It’s will show the available destinations, here user can add the new destination as per required.

Docusaurus Slash Introduction

info

To know more about adding the required destination in Airbyte go to the Destination

  1. Click on the MySQL Training here. it may take some time to fetch the stream names, as shown in figure below:

Docusaurus Slash Introduction

  1. After loading all the Streams form the Vendor’s to the destination, the destination page looks as shown in the figure below:

Docusaurus Slash Introduction

  1. After loading all the data streams user need to add Sync frequency and Table Prifix, as shown in the figure below:
  • Add Sync Frequency: Every Hour
  • Add Table Prefix: hubspot_
  • As shown in the figure below:

Docusaurus Slash Introduction

• When the user add the prefix, it gets added on Destination stream name automatically, as shown in the figure below:

Docusaurus Slash Introduction

  1. At the bottom of the destination page, we have two radio buttons, which contain the Normalization option. Keep the Basic Normalization selected.

Docusaurus Slash Introduction

  1. Now, click on the setup connection to complete the connection. it will test the connection again which may take some time.
  2. Now, to validate the data is synced by the Airbyte, Go to the Connection from the Left menu bar of the screen:

Docusaurus Slash Introduction

  1. Find the Added connection of the HubSpot.com from the list,

Docusaurus Slash Introduction

Here, the Data isn’t synced yet, for that it shows the icon of non-sync at the start of the row. click on the row to see the details.

  1. Here the HubSpot connection page will show the Status of the data sync and sync history.

Docusaurus Slash Introduction

  1. The title of the source and destination name.
  2. Status and settings page top menu bar.
  3. Enable button: from this button, the user can enable/disable the source from the destination.
  4. Reset your data and Sync button: the user can reset their data and only sync the updated data from the vendor.
  1. Click on the sync button to sync the data manually, after clicking on the sync button it will start the process which will indicate the status under the history grid.
info

Once it gets completed it will indicate as the Succeeded under the history, as it will also indicate the size of data records number and time of sync. Here we have added the sync time as every hour, on that the Airbyte will sync the data in every hour automatically which will be shown as the figure below:

Docusaurus Slash Introduction